/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.chronikServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.chronikServiceSoap
 * @generated
 */
public class chronikSoap implements Serializable {
	public static chronikSoap toSoapModel(chronik model) {
		chronikSoap soapModel = new chronikSoap();

		soapModel.setChronik_id(model.getChronik_id());
		soapModel.setDatetime(model.getDatetime());
		soapModel.setMessage(model.getMessage());
		soapModel.setObject(model.getObject());
		soapModel.setParticipant(model.getParticipant());
		soapModel.setUser_id(model.getUser_id());
		soapModel.setEvent_date_time_at(model.getEvent_date_time_at());
		soapModel.setEvent_date_time_down(model.getEvent_date_time_down());
		soapModel.setEvent_action(model.getEvent_action());
		soapModel.setEnable(model.getEnable());

		return soapModel;
	}

	public static chronikSoap[] toSoapModels(chronik[] models) {
		chronikSoap[] soapModels = new chronikSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static chronikSoap[][] toSoapModels(chronik[][] models) {
		chronikSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new chronikSoap[models.length][models[0].length];
		}
		else {
			soapModels = new chronikSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static chronikSoap[] toSoapModels(List<chronik> models) {
		List<chronikSoap> soapModels = new ArrayList<chronikSoap>(models.size());

		for (chronik model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new chronikSoap[soapModels.size()]);
	}

	public chronikSoap() {
	}

	public long getPrimaryKey() {
		return _chronik_id;
	}

	public void setPrimaryKey(long pk) {
		setChronik_id(pk);
	}

	public long getChronik_id() {
		return _chronik_id;
	}

	public void setChronik_id(long chronik_id) {
		_chronik_id = chronik_id;
	}

	public String getDatetime() {
		return _datetime;
	}

	public void setDatetime(String datetime) {
		_datetime = datetime;
	}

	public String getMessage() {
		return _message;
	}

	public void setMessage(String message) {
		_message = message;
	}

	public String getObject() {
		return _object;
	}

	public void setObject(String object) {
		_object = object;
	}

	public String getParticipant() {
		return _participant;
	}

	public void setParticipant(String participant) {
		_participant = participant;
	}

	public long getUser_id() {
		return _user_id;
	}

	public void setUser_id(long user_id) {
		_user_id = user_id;
	}

	public String getEvent_date_time_at() {
		return _event_date_time_at;
	}

	public void setEvent_date_time_at(String event_date_time_at) {
		_event_date_time_at = event_date_time_at;
	}

	public String getEvent_date_time_down() {
		return _event_date_time_down;
	}

	public void setEvent_date_time_down(String event_date_time_down) {
		_event_date_time_down = event_date_time_down;
	}

	public String getEvent_action() {
		return _event_action;
	}

	public void setEvent_action(String event_action) {
		_event_action = event_action;
	}

	public long getEnable() {
		return _enable;
	}

	public void setEnable(long enable) {
		_enable = enable;
	}

	private long _chronik_id;
	private String _datetime;
	private String _message;
	private String _object;
	private String _participant;
	private long _user_id;
	private String _event_date_time_at;
	private String _event_date_time_down;
	private String _event_action;
	private long _enable;
}